Stygian.calendar.herbs = Stygian.calendar.herbs or false
Stygian.calendar.herbsHibernating = { Estar = "flax merbloom weed",
                                        Urlachmar = "kafe rawtea",
                                        Kiani = "colewort",
                                        Dioni = "calamus earwort juniper sage",
                                        Vestian = "horehound wormwood",
                                        Avechary = "mistletoe",
                                        Dvarsh = "sparkleberry",
                                        Tzarin = "reishi sargassum",
                                        Klangiary = "arnica pennyroyal",
                                        Juliary = "coltsfoot faeleaf",
                                        Shanthin = "galingale marjoram rosehips",
                                        Roarkian = "chervil yarrow",
}
Stygian.calendar.herbsFlourishing = { Dvarsh = "flax merbloom weed",
                                        Tzarin = "kafe rawtea",
                                        Klangiary = "colewort",
                                        Juliary = "calamus earwort juniper sage",
                                        Shanthin = "horehound wormwood",
                                        Avechary = "chervil yarrow",
                                        Estar = "sparkleberry",
                                        Urlachmar = "reishi sargassum",
                                        Kiani = "arnica pennyroyal",
                                        Dioni = "coltsfoot faeleaf",
                                        Vestian = "galingale marjoram rosehips",
                                        Avechary = "chervil yarrow",
                                        Roarkian = "mistletoe"
}
Stygian.calendar.herbsReplant = { Urlachmar = "flax merbloom weed",
                                    Kiani = "kafe rawtea",
                                    Dioni = "colewort",
                                    Vestian = "calamus earwort juniper sage",
                                    Avechary = "horehound wormwood",
                                    Dvarsh = "mistletoe",
                                    Tzarin = "sparkleberry",
                                    Klangiary = "reishi sargassum",
                                    Juliary = "arnica pennyroyal",
                                    Shanthin = "coltsfoot faeleaf",
                                    Roarkian = "galingale marjoram rosehips",
                                    Estar = "chervil yarrow",
}


function Stygian_calendar_herbwindow_create()
  createMiniConsole("Stygian_calendar_herb", 0, 0, 0, 0)
  local WindowWidth, WindowHeight = getMainWindowSize()
  local fontx,fonty = calcFontSize(Stygian_calendar_fontsize)
  setMiniConsoleFontSize("Stygian_calendar_herb", Stygian_calendar_fontsize)
  Stygian.calendar.herbWidth = fontx * 45
  Stygian.calendar.herbHeight = fonty * 7
  setBackgroundColor("Stygian_calendar_herb", 0, 0, 0, 0)
  resizeWindow("Stygian_calendar_herb", Stygian.calendar.herbWidth, Stygian.calendar.herbHeight) 
  moveWindow("Stygian_calendar_herb", WindowWidth - Stygian.calendar.herbWidth, Stygian_calendar_posy() + Stygian_calendar_height )
end

function Stygian_calendar_herbwindow_resize()
  local WindowWidth, WindowHeight = getMainWindowSize()
  local fontx,fonty = calcFontSize(Stygian_calendar_fontsize)
  setMiniConsoleFontSize("Stygian_calendar_herb", Stygian_calendar_fontsize)
  Stygian_calendar_herb_width = fontx * 45
  Stygian_calendar_herb_height = fonty * 7
  setBackgroundColor("Stygian_calendar_herb", 0, 0, 0, 0)
  resizeWindow("Stygian_calendar_herb", Stygian_calendar_herb_width, Stygian_calendar_herb_height) 
  moveWindow("Stygian_calendar_herb", WindowWidth - Stygian_calendar_herb_width, Stygian_calendar_posy() + Stygian_calender_height )
end

function Stygian_calendar_display_herbwindow()
  clearWindow("Stygian_calendar_herb")
  local month = Stygian_date.month
  local herbs_to_replant = Stygian_calendar_herbs_replant[month]
  local herbs_flourishing = Stygian_calendar_herbs_flourishing[month]
  local herbs_hibernating = Stygian_calendar_herbs_hibernating[month]
  cecho("Stygian_calendar_herb", "<purple>Flourishing:<green> " .. herbs_flourishing .. "\n<purple>Hibernating:<green> " .. herbs_hibernating .. "\n<purple>to replant: <green>" .. herbs_to_replant)
end
